package com.hysf;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.context.annotation.RequestScope;

import javax.sql.DataSource;

@RestController
@SpringBootApplication/*(scanBasePackages = {"com.hysf"})*/
public class App {
	@Autowired
	private DataSource dataSource;
	
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
	
//	@GetMapping ("/hello")
	@RequestMapping("/hello")
	
	public String hello(@RequestParam("name")String name
	                    /*@RequestHeader("token")String token,
	                    @RequestBody Product product,
	                    @RequestAttribute
	                    @RequestPart*/) {
		return "hello" + name;
	}
}
